package nl.ypmits.utils.as3 {

	import flash.display.LoaderInfo;
	/**
	 * @author Dave Lenz
	 */
	public class GeneralSetupHelper {

		public static function getURLParts( loaderinfo : LoaderInfo ) : Object {
			var urlPattern : RegExp = /([\w]+):\/\/([\w\._-]+)+(\S+)*(\?\S+)?/;
			var result : Array = urlPattern.exec( loaderinfo.loaderURL );
			trace( "r:",result, loaderinfo.loaderURL );
			var parts : Object = {
//                        'protocol': result[1],
//                        'domain': result[2],
//                        'path': result[3]
                };

			return parts;
		}	
	}
}
